package com.uniapp.server.repository;

import com.uniapp.server.model.RecordEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * @author cyt
 * @describe
 * @create 2021-01-15 23:47
 */
@Repository
public interface RecordRepository extends JpaRepository<RecordEntity, Integer> {
    /**
     * 分页获取数据
     *
     * @param specification
     * @return
     */
    ArrayList<RecordEntity> findAll(Specification<RecordEntity> specification);
}
